package com.buba.service.Impl;

import com.buba.mapper.FollowUserMapper;
import com.buba.service.FollowUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @descriptions:
 * @author:
 * @date: 2023/3/8 14:40
 */
@Service
public class FollowUserServiceImpl implements FollowUserService {
    @Resource
    FollowUserMapper followUserMapper;

    /**
     * @descriptions 获取关注信息
     * @author ZQ
     * @date 2023/3/8 14:58
     * @param userId
     * @return java.util.List<java.util.Map>
     */
    @Override
    public List<Map> getFollowUserListById(Integer userId) {
        // 根据userId 查询关注信息
        List<Map> followUserList = followUserMapper.getFollowUserListById(userId);
        return followUserList;
    }
}
